﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;

namespace TheOutLetLibrary.Infraestrutura {

    public abstract class BaseDAO {

        private OleDbTransaction transacao;

        public BaseDAO(OleDbTransaction transacao) {
            this.transacao = transacao;
        }

        protected OleDbCommand GetCommand() {
            OleDbCommand comando = new OleDbCommand();
            comando.Transaction = transacao;
            comando.Connection = transacao.Connection;
            return comando;
        }

    }
}
